<!-- Begining of sizes list -->

<div class="top-action">
	<ul class="links">
		<li class="record-add"><a href="sizes-add.php">Add Image Sizes</a></li>
	</ul>
</div>

{if $sizess|count}

<div class="form-wrap">
<form id="sizes-list-form" name="sizes-list-form" method="post" action="sizes-blockaction.php">
<table class="data" id="data-table">

<!--{* <caption>List of Image Sizes</caption> *}-->

<thead>
	<tr class="thead">
	  <th><input type="checkbox" id="sizes-checkall" name="checkallentities" value="checkallentities" tabindex="0" /></th>
		<th class="th-sn">S.N.</th>
		<th>&nbsp;</th>
		<th title="Essential Size?">E?</th>
		<th title="Logo Mark?">L?</th>
		<th title="Default Size?">D?</th>
		<th>#ID</th>
		<th>Name</th>
		<th>Width</th>
		<th>Height</th>
		<th>Bytes Allowed</th>
		<th class="th-menus">#Albums</th>
		<th class="th-menus">?</th>
	</tr>
</thead>

<tbody>
{section name='l' loop=$sizess}
	<tr class="{cycle values='A,B'}">
	  <td><input type="checkbox" name="sizes[]" value="{$sizess[l].size_id}" /></td>
		<td class="r">{$smarty.section.l.index_next+$pagination->begining_entry()}.</td>
		<td class="r"><a href="sizes-flag.php?flag=is_approved&amp;id={$sizess[l].size_id}&amp;code={$sizess[l].code}">{$sizess[l].is_approved|yn}</a></td>
		<td class="r"><a href="sizes-flag.php?flag=is_essential&amp;id={$sizess[l].size_id}&amp;code={$sizess[l].code}">{$sizess[l].is_essential|yn}</a></td>
		<td class="r"><a href="sizes-flag.php?flag=do_logomark&amp;id={$sizess[l].size_id}&amp;code={$sizess[l].code}">{$sizess[l].do_logomark|yn}</a></td>
		<td class="r"><a href="sizes-flag.php?flag=is_default&amp;id={$sizess[l].size_id}&amp;code={$sizess[l].code}">{$sizess[l].is_default|yn}</a></td>
		<td class="r"><strong>{$sizess[l].size_id}</strong></td>
		<td><a href="sizes-details.php?id={$sizess[l].size_id}&amp;code={$sizess[l].code}">{$sizess[l].size_name}</a></td>
		<td class="r">{$sizess[l].dimension_width|n}</td>
		<td class="r">{$sizess[l].dimension_height|n}</td>
		<td class="r">{$sizess[l].allowed_bytes|n}</td>
		<td class="actions nowrap">-</td>
		<td class="actions nowrap"><ul>
			<li class="move-up"><a href="sizes-sort.php?id={$sizess[l].size_id}&amp;direction=up" title="Move Up">Move Up</a></li>
			<li class="move-down"><a href="sizes-sort.php?id={$sizess[l].size_id}&amp;direction=down" title="Move Down">Move Down</a></li>
			<li class="edit"><a href="sizes-edit.php?id={$sizess[l].size_id}&amp;code={$sizess[l].code}" title="Edit">Edit</a></li>
			<li class="detail"><a href="sizes-details.php?id={$sizess[l].size_id}&amp;code={$sizess[l].code}" title="Details">Details</a></li>
			<!--<li class="delete"><a href="sizes-delete.php?id={$sizess[l].size_id}&amp;code={$sizess[l].code}" title="Delete" class="delete">Delete</a></li>*}-->
		</ul></td>
	</tr>
{sectionelse}
	<tr class="error">
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>&nbsp;</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
	</tr>
{/section}
</tbody>
</table>
</form>
</div>

<!-- paginator -->
{if $pagination->has_pages()}
<div class="paginator">
	<span class="introduction">Jump to page: </span>
	{paginate separator=' ' ulli=false source=$pagination}
</div>
{/if}


<!-- Javascript Handlers, Ajax, and Validators -->
{js src='ajax.js'}
{js src='validators/sizes/list.js' validator=true}

{else}
	<div class="nodata">You do not have any records here.</div>
{/if}

<!-- End of sizes List -->